package de.justphil.tcg.tcgserver.commons.domain.wrappers;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import de.justphil.tcg.tcgserver.commons.domain.Deck;

@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
public class ShallowDeck {

	@XmlElement
	private long id;
	
	@XmlElement
	private String name;
	
	@XmlElement
	private long[] cardInstances;
	
	
	public ShallowDeck() {
		// JAXB conformity
	}
	
	public ShallowDeck(Deck deck) {
		this(deck.getId(), deck.getName(), deck.getCardInstanceIdsAsArray());
	}

	public ShallowDeck(long id, String name, long[] cardInstances) {
		super();
		this.id = id;
		this.name = name;
		this.cardInstances = cardInstances;
	}
	
	
	
	

	public long getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public long[] getCardInstances() {
		return cardInstances;
	}
	
	
	
	
}
